// 风险分级区域划分
import request from "@/utils/request.js";


//查询
export function listGoodsManage (params){
  return request({
    url: `/system/appliance/list`,
    method: 'get',
    params
  })
}

//新增
export function addGoodsManage (data){
  return request({
    url: `/system/appliance`,
    method: 'post',
    data
  })
}

//修改
export function editGoodsManage (data){
  return request({
    url: `/system/appliance`,
    method: 'put',
    data
  })
}

//导出
export function exportGoodsManage (data){
  return request({
    url: `/system/appliance/export`,
    method: 'post',
    responseType: 'blob',
    data
  })
}

//删除
export function deleteGoodsManage (ids){
  return request({
    url: `/system/appliance/${ids}`,
    method: 'delete',
  })
}

// /详情
export function detailGoodsManage (id){
  return request({
    url: `/system/appliance/${id}`,
    method: 'get',
  })
}